﻿{* 
    This file is a template part of Plugins.tpl
    Copyright (c) 2011, XBloks Progect 
*}


<link rel="stylesheet" href="{$BACKEND_CSS}dataTable.css" type="text/css" />
<link rel="stylesheet" href="{$BACKEND_CSS}Form.css"      type="text/css" />
<link rel="stylesheet" href="{$BACKEND_CSS}Buttons.css"   type="text/css" />

<script type="text/javascript" src="{$BACKEND_JS}sliding.form.js"></script>
<div  class="clear"> </div>	
    <div id="Fcontent">
        <div id="wrapper">
        
            <div id="steps">
               
                    
                   
                    <fieldset class="step">
                    <form>
                        <legend>{$lang.block_title}</legend>
                        
                        <div id="tableHolder">
                            <div id="tableActions">
                            <form>
                                <div id="search" style="width: 203px;">
                                <form name="search_form" action="{$form_action}" method="get">
                                    <table>
                                    <thead>
                                        <tr>
                                            <th><input name="search" type="text" value="{$search}" /></th>
                                        </tr>
                                        </thead>
                                    </table>
                                </form>
                                </div>
                                
                                <div id="pages">
                                    <table>
                                    <thead>
                                        <tr>
                                            <th>{$lang.page}&nbsp;</th>
                                            <th style="padding-right:10px; padding-left:5px; ">
                                                <form action="{$form_action}" name="listing" method="get">
                                                    <select onchange="this.form.submit();" name="page" style="width:50px;">
                                                        {section name=pages start=1 loop=$pages_count+1 step=1}
                                                            <option  {if $page == $smarty.section.pages.index} selected="true" {/if} value="{$smarty.section.pages.index}">{$smarty.section.pages.index}</option>                                           
                                                        {/section}
                                                    </select>
                                                </form>
                                            </th>
                                            <th>&nbsp;{$lang.from}&nbsp;</th>
                                            
                                            <th>&nbsp;{$pages_count}&nbsp;</th>
                                            <th style="padding-left:10px;">{$prev_link}</th>
                                            <th style="padding-left:10px;">{$next_link}</th>
                                            
                                        </tr>
                                        </thead>
                                    </table>
                                </div>
                                
                                
                            </form>
                            </div>
                            <div style="clear:both;"></div>
                            <table border="0" width="100%" cellspacing="1" cellpadding="0" class="dataTable">
                              <thead>
                                <tr>
                                  <th>{$lang.title}</th>
                                  <th>{$lang.version}</th>
                                  <th>{$lang.path}</th>
                                  <th>{$lang.site}</th>
                                  <th width="150">{$lang.table_heading_action}</th>
                                </tr>
                              </thead>
                              <tfoot>
                                <tr>
                                  <th colspan="5">
                                      <div style="float:left"> {$lang.total}:&nbsp;{$total_items}&nbsp;{$lang.items}</div>
                                  </th>
                                  
                                </tr>
                              </tfoot>
                              <tbody>
                                {foreach from=$plugins item=temp name=pages}
                                <tr   class="{if $smarty.foreach.pages.index mod 2 > 0} row1{else} row0{/if}">
                                 <td>{$icon}&nbsp;  {$temp.title}</td>
                                 <td>{$temp.version}</td>
                                 <td>{$temp.path}</td>
                                 <td>{$temp.site}</td>
                                 <td align="right">{$edit_icon}&nbsp; {$delete_icon}</td>
                                </tr>
                                {/foreach}
                              </tbody>
                            </table>	
                        </div>
                    </form>
                    </fieldset>                   
                  
                      <fieldset class="step">
                    <form>
                        <legend>{$lang.block_title}</legend>
                        
                        <div id="tableHolder">
                            <div id="tableActions">
                            <form>
                                <div id="search" style="width: 203px;">
                                <form name="search_form" action="{$form_action}" method="get">
                                    <table>
                                    <thead>
                                        <tr>
                                            <th><input name="search" type="text" value="{$search}" /></th>
                                        </tr>
                                        </thead>
                                    </table>
                                </form>
                                </div>
                                
                                <div id="pages">
                                    <table>
                                    <thead>
                                        <tr>
                                            <th>{$lang.page}&nbsp;</th>
                                            <th style="padding-right:10px; padding-left:5px; ">
                                                <form action="{$form_action}" name="listing" method="get">
                                                    <select onchange="this.form.submit();" name="page" style="width:50px;">
                                                        {section name=pages start=1 loop=$pages_count+1 step=1}
                                                            <option  {if $page == $smarty.section.pages.index} selected="true" {/if} value="{$smarty.section.pages.index}">{$smarty.section.pages.index}</option>                                           
                                                        {/section}
                                                    </select>
                                                </form>
                                            </th>
                                            <th>&nbsp;{$lang.from}&nbsp;</th>
                                            
                                            <th>&nbsp;{$pages_count}&nbsp;</th>
                                            <th style="padding-left:10px;">{$prev_link}</th>
                                            <th style="padding-left:10px;">{$next_link}</th>
                                            
                                        </tr>
                                        </thead>
                                    </table>
                                </div>
                                
                                
                            </form>
                            </div>
                            <div style="clear:both;"></div>
                            <table border="0" width="100%" cellspacing="1" cellpadding="0" class="dataTable">
                              <thead>
                                <tr>
                                  <th>{$lang.title}</th>
                                  <th>{$lang.version}</th>
                                  <th>{$lang.path}</th>
                                  <th>{$lang.site}</th>
                                  <th width="150">{$lang.table_heading_action}</th>
                                </tr>
                              </thead>
                              <tfoot>
                                <tr>
                                  <th colspan="5">
                                      <div style="float:left"> {$lang.total}:&nbsp;{$total_items}&nbsp;{$lang.items}</div>
                                  </th>
                                  
                                </tr>
                              </tfoot>
                              <tbody>
                                {foreach from=$plugins item=temp name=pages}
                                <tr   class="{if $smarty.foreach.pages.index mod 2 > 0} row1{else} row0{/if}">
                                 <td>{$icon}&nbsp;  {$temp.title}</td>
                                 <td>{$temp.version}</td>
                                 <td>{$temp.path}</td>
                                 <td>{$temp.site}</td>
                                </tr>
                                {/foreach}
                              </tbody>
                            </table>	
                        </div>
                    </form>
                    </fieldset>                   
                  
                    
					<fieldset class="step" style="height:325px;">
                    <form>
                        <legend>{$lang.help}</legend>
                        
						<p class='block'>
							Everything in the form was correctly filled 
							if all the steps have a green checkmark icon.
							A red checkmark icon indicates that some field 
							is missing or filled out with invalid data. In this
							last step the user can confirm the submission of
							the form.
						</p>
                    </form>
                    </fieldset>
                    
            </div>
            <div id="navigation" style="display:none;">
                <ul>
                    <li class="selected">
                        <a href="#">{$lang.JS}</a>
                    </li>
                    <li>
                        <a href="#">{$lang.PHP}</a>
                    </li>
                     <li>
                        <a href="#">{$lang.help}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    
  </div>
    
</div>